<?php

namespace plugin\admin\app\controller\user;


use plugin\admin\app\logic\font\FontLogic;
use plugin\admin\app\logic\music\MusicLogic;
use plugin\admin\app\logic\plan\PlanLogic;
use plugin\admin\app\logic\timbre\TimbreLogic;
use plugin\admin\app\logic\user\PromotionPartsLogic;
use plugin\admin\app\logic\user\PromotionPlanLogic;
use support\Request;
use support\Response;
use plugin\admin\app\controller\AuthController;
use support\exception\BusinessException;

class PartsController extends AuthController
{
    
    /**
     * 浏览
     * @return Response
     */
    public function index(): Response
    {
        return view('user/parts/index');
    }

    /**
     * 查询
     * @param Request $request
     * @return Response
     * @throws BusinessException
     */
    public function select(Request $request): Response
    {
        return PromotionPartsLogic::getInstance()->select($request);
    }
}
